<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page  isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    

	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.min.css" />

<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/jquery-ui-1.10.3.custom.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/jquery.gritter.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/select2.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/bootstrap-editable.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/ace.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/assets/css/ace-rtl.min.css" />

    <link href="<%=request.getContextPath()%>/assets/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
	<script src="assets/js/jquery-1.10.2.js"></script>
	<script  type="text/script" src="<%=request.getContextPath()%>/js/bootstrap.min.js" ></script>
	  </head>
  

<body style="    background-color: #fff;">
	<div class="page-content">
		<div class="page-header">
			<h1>
				取消订单 <small> <i class="icon-double-angle-right"></i>
				</small>
			</h1>
		</div>
		<!-- /.page-header -->
		<div class="row">
			<div class="col-xs-12">
				<div>
					<div id="user-profile-1" class="user-profile row">

						<div class="col-xs-12 col-sm-9">

							<div class="space-12"></div>

							<div class="profile-user-info profile-user-info-striped">
								<div class="profile-info-row">
									<div class="profile-info-name">订单号</div>

									<div class="profile-info-value">
										<span class="editable" id="id">${order.id}</span>
									</div>
								</div>

								<div class="profile-info-row">
									<div class="profile-info-name">订单状态</div>

									<div class="profile-info-value">
										<span class="label label-sm label-warning" id="status">取消订单</span>
										
									</div>
								</div>								
								<div class="profile-info-row">
									<div class="profile-info-name">发布时间</div>

									<div class="profile-info-value">
										<span class="editable" id="publicTime">
										<fmt:formatDate value="${order.publicTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
										</span>
									</div>
								</div>
								<%-- <div class="profile-info-row">
									<div class="profile-info-name">开始时间</div>

									<div class="profile-info-value">
										<span class="editable" id="startTime">
										<fmt:formatDate value="${order.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
										</span>
									</div>
								</div> --%>
								<div class="profile-info-row">
									<div class="profile-info-name">发布机构</div>

									<div class="profile-info-value">
										<span class="editable" id="institutionName">${order.institutionName}</span>
									</div>
								</div>
								<div class="profile-info-row">
									<div class="profile-info-name">机构电话</div>

									<div class="profile-info-value">
										<span class="editable" id="institutionName">${order.phone}</span>
									</div>
								</div>
								<div class="profile-info-row">
									
									<div class="profile-info-name">接单医生及电话</div>

									<div class="profile-info-value">
										<c:choose >
											<c:when test="${item.doctorName == NULL }">
												<span>未接单</span>
											</c:when>
											<c:otherwise>
												<span class="editable" id="doctorName">${order.doctorName}</span>
											</c:otherwise>
										</c:choose>
										<c:choose >
											<c:when test="${item.doctorPhone == NULL }">
												<span>无</span>
											</c:when>
											<c:otherwise>
												<span class="editable" id="doctorPhone">${order.doctorPhone}</span>
											</c:otherwise>
										</c:choose>										
									</div>
								</div>
								<div class="profile-info-row">
									<div class="profile-info-name">取消方</div>

									<div class="profile-info-value">
										<c:if test="${order.cancelBy=='true'}">
											<span class="editable" id="cancelBy">医生</span>
										</c:if>
										<c:if test="${order.cancelBy=='false'}">
											<span class="editable" id="cancelBy">机构</span>
										</c:if>
									</div>
								</div>
								<div class="profile-info-row">
									<div class="profile-info-name">取消原因</div>

									<div class="profile-info-value">
										<span class="editable" id="cancelReason">${order.cancelReason}</span>
									</div>
								</div>
								<div class="profile-info-row">
									<div class="profile-info-name">金额</div>

									<div class="profile-info-value">
										<span class="editable" id="money">${order.money}</span>
									</div>
								</div>
								<div class="profile-info-row">
									<div class="profile-info-name">取消时间</div>
									
									<div class="profile-info-value">
										
										<span class="editable" id="cancelTime">
											<fmt:formatDate value="${order.cancelTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
										</span>
										<%-- <c:if test="${order.cancelTime !=NULL}">
										</c:if> --%>
									</div>
								</div>
								

							<div class="space-20"></div>
								<div class="clearfix form-actions">
											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset" onclick="window.location.href='orderManagement/canceled/1'">
												<i class="icon-undo bigger-110"></i>
												返回
											</button>
										</div>
								</div>
						</div>
						
					</div>
				</div>
				<br>
			</div>
		</div>
</div>
</body>
</html>